import request from '@/utils/request'

export function listPage(data) {
  return request({
    url: '/user/listPage',
    method: 'post',
    data
  })
}

export function companyListPage(data) {
  return request({
    url: '/company/listPage',
    method: 'post',
    data
  })
}

export function modifyUser(data) {
  return request({
    url: '/user/modifyUser',
    method: 'post',
    data
  })
}

export function modify(data) {
  return request({
    url: '/user/modify',
    method: 'post',
    data
  })
}

export function companyDelete(data) {
  return request({
    url: `/company/delete/${data}`,
    method: 'DELETE',
  })
}
